package tec;

class Prudent
    extends Caractere {

    public Prudent(){
	
    }


    
    void choixChangerPlace(Bus b, int numeroArret, Passager p){
	if (p.distance2Dest(numeroArret)<=3 && p.estAssis())
	    b.demanderChangerEnDebout(p);
	else if (p.distance2Dest(numeroArret) >= 5 && p.estDebout())
	    b.demanderChangerEnAssis(p);
	
    
    }

}